package com.xiaomi.service.Impl;

import com.xiaomi.dao.YonghuMapper;
import com.xiaomi.entity.Yonghu;
import com.xiaomi.service.YonghuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @ClassName YonghuServiceImpl
 * @Description TODO
 * @Author 獄
 * @Date 2021/11/28 21:13
 */
@Service
public class YonghuServiceImpl implements YonghuService {
    @Resource
    YonghuMapper yonghuMapper;

    @Override
    public List<Yonghu> selectAll(Map<String, Object> pars) {
        return yonghuMapper.selectAll(pars);
    }

    @Override
    public int count(Map<String, Object> pars) {
        return yonghuMapper.count(pars);
    }

    @Override
    public int update(Yonghu yonghu) {
        return yonghuMapper.update(yonghu);
    }

    @Override
    public int add(Yonghu yonghu) {
        return yonghuMapper.add(yonghu);
    }

    @Override
    public int del(int id) {
        return yonghuMapper.del(id);
    }
}
